import fetch from '@/utils/fetch'

export default {
    async page(data) {
        return await fetch({
            url: '/batch/page',
            method: 'post',
            data,
        })
    },

    async save(data) {
        return await fetch({
            url: '/batch/save',
            method: 'post',
            data,
        })
    },

    async getBatchAndProduct(data) {
        return await fetch({
            url: '/batch/getBatchAndProduct',
            method: 'post',
            data,
        })
    },

    async publish(data) {
        return await fetch({
            url: '/batch/publish',
            method: 'post',
            data,
        })
    }
}